package com.example.service;

import com.example.pojo.TbCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program:bookstore2
 * @auther:linan
 * @date:2022/12/26
 **/
public interface TbCartService {
    List<TbCart> list();

    TbCart selectById(Long bookId);
    List<TbCart> selectByBookId(Long cid);
    List<TbCart> selectByName(String bookName);
    List<TbCart> selectByMulCon(TbCart tbCart);
    int add(@Param("book") TbCart tbCart);
    int update(TbCart tbCart);
}
